//
//  S4UController.m
//  Service4U
//
//  Created by Hai Nguyen on 10/5/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "S4UController.h"

@implementation S4UController
@synthesize titleView;
@synthesize titleBackground;
@synthesize	backButton;
@synthesize	titleLabel;
@synthesize backgroundImage;
@synthesize tabBarViewController;

- (IBAction) back{
	[self.navigationController popToRootViewControllerAnimated:YES];
	[self.tabBarViewController reset];
}

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
}

/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations.
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
	self.titleView = nil;
	self.titleBackground = nil;
	self.backButton = nil;
	self.titleLabel = nil;
	self.backgroundImage = nil;
}


- (void)dealloc {
	[titleView release];
	[titleBackground release];
	[backButton release];
	[titleLabel release];
	[backgroundImage release];
    [super dealloc];
}


@end
